/*
 * Pwm.h
 *
 *  Created on: 2016-4-23
 *      Author: Billli
 */

#ifndef PWM_H_
#define PWM_H_
#include "BUS.h"
#include "alt_types.h"

#define PWM_CS   CS0
#define CCR0_OFFSET 	0
#define CCR1_OFFSET	    1
#define EN_OFFSET		2


extern void OpenPwm(void );
extern void ClosePwm(void );
extern void SetPwmWave(double freq,double duty);

#endif /* PWM_H_ */
